FROM {FromBaseDockerImage}
MAINTAINER think

ENV LANG=C.UTF-8
ENV TZ=Asia/Shanghai

ARG PRG_NAME=""

RUN mkdir -p /${PRG_NAME}
WORKDIR /${PRG_NAME}

#解决可执行文件无法运行问题
RUN mkdir /lib64 && ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2

COPY ${PRG_NAME} app
COPY .env .env
CMD ["./app"]
# 暴露端口
EXPOSE 8080